package com.cu.controller;

import com.cu.common.Resp;
import com.cu.service.RoleService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("role")
public class RoleController {

    private final  RoleService roleService;

    public RoleController(RoleService roleService) {
        this.roleService = roleService;
    }

    @GetMapping("delete")
    public Resp logicDeleteTest(Long id){
        roleService.removeById(id);
        return new Resp();
    }
}
